// import { Upload } from "@/api/interface/index";
// import { PORT1 } from "@/api/config/servicePort";

// import http from "@/api";
// import http, { RequestHttp } from "../$axios";
import axios from "axios";

namespace Upload {
  export interface ResFileUrl {}
}
/**
 * @name 文件上传模块
 */
// 图片上传
export const uploadImg = (params: FormData) => {
  return axios.post<Upload.ResFileUrl>(`/file/upload/img`, params);
};

// 视频上传
export const uploadVideo = (params: FormData) => {
  return axios.post<Upload.ResFileUrl>(`/file/upload/video`, params);
};
